﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RunsEdit.aspx.cs" Inherits="NSATBPortal.RunsEdit" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Scheduled Run Add/Edit</title>
</head>
<body style="font-family: Tahoma; margin: 20px 0px 0px 10px; background-color: lightgray">
    <form id="form1" runat="server">
    <ajaxToolkit:ToolkitScriptManager id="scriptmanager1" runat="server" />
    <div id="Header" style="font-size: large; background-color: darkblue; color: white;">
        <div style="float: left; font-size: large; background-color: darkblue; color: white; width: 100%;">
        <a href="RunsHome.aspx" style="color: white;">Scheduled Runs List</a>&nbsp;&gt;&nbsp;Scheduled Run
        </div>
    </div>
    <div style="width: 100%; height: 100%; margin: 20px 0px 0px 0px; background-color: lightgray">
        <div style="margin: 20px 0px 0px 0px; height: 100%;">
            <asp:Label ID="lblParent" runat="server" Text="Label" BackColor="#000099" ForeColor="White" Font-Bold="True" Width="50%"></asp:Label>
            <p>
                <asp:Label ID="lblName" runat="server" Text="Name"></asp:Label>
                <br />
                <asp:TextBox ID="txtName" runat="server" Width="325px" MaxLength="255" Wrap="False"></asp:TextBox>
            </p>
            <p>
                <asp:Label ID="lblDefRun" runat="server" Text="Run Definition"></asp:Label>
                <br />
                <asp:DropDownList ID="dropdownDefRun" Visible="true" Enabled="true" runat="server" AutoPostBack="false"></asp:DropDownList>
            </p>
            <p>
                <asp:Label ID="lblSchedule" runat="server" Text="Schedule"></asp:Label>
                <br />
                <asp:RadioButton ID="radiobuttonImmediate" runat="server" Text="Immediate" AutoPostBack="true" CausesValidation="True" OnCheckedChanged="radiobuttonImmediate_CheckedChanged" />
                <br />
                <asp:RadioButton ID="radiobuttonSchedule" runat="server" Text="Future" AutoPostBack="true" CausesValidation="True" OnCheckedChanged="radiobuttonSchedule_CheckedChanged" />
                <br /><br />
                <asp:Label ID="lblDate" runat="server" Text="Time"></asp:Label>&nbsp;
                <asp:TextBox ID="txtDate" runat="server" Width="130px" MaxLength="1" style="text-align:justify" ValidationGroup="MKE" />
                <asp:ImageButton ID="ImgBntCalc" runat="server" ImageUrl="~/content/images/Calendar_scheduleHS.png" CausesValidation="False" />
                <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender5" runat="server"
                    TargetControlID="txtDate"
                    Mask="99/99/99"
                    MessageValidatorTip="true"
                    OnFocusCssClass="MaskedEditFocus"
                    OnInvalidCssClass="MaskedEditError"
                    MaskType="Date"
                    DisplayMoney="Left"
                    AcceptNegative="Left"
                    ErrorTooltipEnabled="True" />
                <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator5" runat="server"
                    ControlExtender="MaskedEditExtender5"
                    ControlToValidate="txtDate"
                    EmptyValueMessage="Date is required"
                    InvalidValueMessage="Date is invalid"
                    Display="Dynamic"
                    IsValidEmpty="false"
                    TooltipMessage="Input a date"
                    EmptyValueBlurredText="*"
                    InvalidValueBlurredMessage="*"
                    ValidationGroup="MKE" />
                 <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" PopupButtonID="ImgBntCalc" />
                <br />
                <asp:Label ID="lblTime" runat="server" Text="Time"></asp:Label>&nbsp;
                <asp:TextBox ID="txtTime" runat="server" Width="130px" Height="16px" ValidationGroup="MKE" />
                <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender3" runat="server"
                    TargetControlID="txtTime" 
                    Mask="99:99:99"
                    MessageValidatorTip="true"
                    OnFocusCssClass="MaskedEditFocus"
                    OnInvalidCssClass="MaskedEditError"
                    MaskType="Time"
                    AcceptAMPM="True"
                    ErrorTooltipEnabled="True" />
                <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator3" runat="server"
                    ControlExtender="MaskedEditExtender3"
                    ControlToValidate="txtTime"
                    IsValidEmpty="False"
                    EmptyValueMessage="Time is required"
                    InvalidValueMessage="Time is invalid"
                    Display="Dynamic"
                    TooltipMessage="Input a time"
                    EmptyValueBlurredText="*"
                    InvalidValueBlurredMessage="*"
                    ValidationGroup="MKE"/>

                <br />
            </p>
            <p>
                <asp:Button ID="cmdSave" runat="server" Text="Save" OnClick="cmdSave_Click" />
                &nbsp;&nbsp;
                <asp:Button ID="cmdCancel" runat="server" Text="Cancel" OnClick="cmdCancel_Click" />
            </p>
            <p>
                <asp:Label ID="lblErrorMessage" runat="server" Text="" ForeColor="Red" Font-Bold="true"></asp:Label>
            </p>
        </div>
    </div>
    </form>
</body>
</html>
